package com.itheima.zuoye;

import java.util.ArrayList;

public class Test1 {
    public static void main(String[] args) {


        ArrayList<Student> list = new ArrayList<>();
        list.add(new Student("001","张三",18,"男","123456789","123456789@qq.com"));
        list.add(new Student("002","李四",18,"男","123456789","123456789@qq.com"));
        list.add(new Student("003","王五",18,"男","123456789","123456789@qq.com"));

        for (int i = 0; i < list.size(); i++) {
            Student student = list.get(i);
            System.out.println(student.getId()+student.getName()+" "+student.getAge()+" "+student.getSex()+" "+student.getPhone()+" "+student.getEmail());
        }

    }
}
